#ifndef _TIME_H
#define _TIME_H

#define MINUTE 60
#define HOUR  (60 * MINUTE)
#define DAY   (24 * HOUR)
#define YEAR  (365 * DAY)


struct timek {
	int sec;
	int min;
	int hour;
	int day;
	int mon;
	int year;
};

extern unsigned long mktime (struct timek *time);
extern unsigned long timediff (unsigned long time1, unsigned long time2);

#endif
